package com.example.androidlearning2400.ui.theme

fun main(){
    print("Please input telephone number:")
    val telephone = readln().replace("", "").replace("-", "")
    print(telephone)
    if(telephone.length != 11){
        print("Telephone is Valid")
    }else{
        val q3 = telephone.substring(0,3)
        val h4 = telephone.substring(7,11)
        print("$q3****$h4")
    }
}